package com.jiangjiang.eshop.cart.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * @ClassName ShoppingCartDTO
 * @Description TODO
 * @Author jhw
 * @Date 2021/6/14 7:04
 * @Version 1.0
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ShoppingCartDTO {
    /**
     * 主键
     */
    private Long id;
    /**
     * 用户账户
     */
    private Long userAccountId;
    /**
     * 购物车创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date gmtCreate;
    /**
     * 购物车修改时间
     */
    @JsonFormat(pattern = "yyyy-HH-dd HH:mm:ss",timezone = "GMT+8")
    private Date gmtModified;
    /**
     * 购物车条目
     */
    private List<ShoppingCartItemDTO> shoppingCartItemDTOList;
}
